package com.heima.user.feign;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heima.model.admin.dtos.AuthDto;
import com.heima.model.admin.pojos.AdUser;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.enums.AppHttpCodeEnum;
import com.heima.user.service.ApUserRealnameService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * APP实名认证信息表 前端控制器
 * </p>
 *
 * @author fly
 */
@Slf4j
@RestController
@RequestMapping("/api/v1/auth")
public class ApUserRealnameClient {

    @Autowired
    private ApUserRealnameService apUserRealnameService;

    @PostMapping("/list")
    public ResponseResult findList(@RequestBody AuthDto authDto) {
        return apUserRealnameService.findList(authDto);
    }
    @PostMapping("/authFail")
    public ResponseResult authFail(@RequestBody AuthDto authDto){return apUserRealnameService.authFail(authDto);}
    @PostMapping("/authPass")
    public ResponseResult authPass(@RequestBody AuthDto authDto){
    return apUserRealnameService.authPass(authDto);
    }
}
